package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.api.domain.Signup;
import com.ruoyi.system.api.factory.RemoteLogFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(contextId = "remoteSignupService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteLogFallbackFactory.class)
public interface RemoteSignupService {


    @PostMapping("/signup")
    public AjaxResult add(@RequestBody Signup signup, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);


    @GetMapping("/signup/personalSignUp")
    public AjaxResult getPersonalSignUp(@RequestParam("id")String id,@RequestHeader(SecurityConstants.FROM_SOURCE)String source);

}
